#region Summary

// 
// Owner : JackieHan 
// 
// Solution : LearnSolution 
// 
// Project : JackieHan.NHiberante.SessionManage
// 
// File : ISessionStorage.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : NH ISession获取接口
// 
// History : 
//			2010-09-28 11:57:41	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using NHibernate;

#endregion

namespace JackieHan.NHiberante.SessionManage
{
    /// <summary> 
    /// NH ISession获取接口
    /// </summary>
    public interface ISessionStorage
    {
        /// <summary>
        /// 获取Session
        /// </summary>
        /// <returns></returns>
        ISession Get();
        /// <summary>
        /// 保存Session
        /// </summary>
        /// <param name="value"></param>
        void Set(ISession value);
    }
}